<template>
  <div>
    <el-icon @click="ck"><CaretRight v-if="$store.state.homeModule.navBool"/><CaretLeft v-else/></el-icon>
  </div>
</template>

<script setup>
import {  CaretRight,CaretLeft } from '@element-plus/icons-vue'
import { useStore } from "vuex"
let store=useStore()
console.log(store.state.homeModule.navBool)
let ck=()=>{
  console.log("click...")
  store.commit("SET_NAV_BOOL")
}


</script>

<style lang="scss">

.el-header{
  line-height: 60px;
  .el-icon{
    font-size: 40px;
  }
}

</style>
